package com.j283_5.wisdom_park.controller.confcenter_management.opelogmanage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j283_5.wisdom_park.common.result.ResultData;
import com.j283_5.wisdom_park.pojo.Alarules;

import com.j283_5.wisdom_park.pojo.Opelogmanage;
import com.j283_5.wisdom_park.service.OpelogmanageService;
import com.j283_5.wisdom_park.vo.confcenter_management.AlarulesVo;
import com.j283_5.wisdom_park.vo.confcenter_management.OpeLogManageVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/opeLogManage")
@Api(value = "操作日志",tags = "操作日志",produces = "罗移筵")
public class OpeLogManageController {
    @Resource
    private OpelogmanageService opelogmanageService;

    /**
     * 查询所有操作日志
     * @param page
     * @param opelogmanage
     * @return
     */
    @RequestMapping(value = "/opeLogManageList",method = RequestMethod.GET)
    @ApiOperation(value = "查询所有操作日志",notes = "查询所有操作日志（分页）",produces = "罗移筵",response = ResultData.class)
    public ResultData opelogManage(@Param("page") Page<Opelogmanage> page, Opelogmanage opelogmanage){
        return opelogmanageService.opelogManage(page,opelogmanage);
    }

    /**
     * 新增操作日志
     * @param opeLogManageVo
     * @return
     */
    @RequestMapping(value = "/addopeLogManage",method = RequestMethod.POST)
    @ApiOperation(value = "新增操作日志",notes = "新增操作日志",produces = "罗移筵",response = ResultData.class)
    public ResultData addopeLogManage(@RequestBody OpeLogManageVo opeLogManageVo){
        return opelogmanageService.addopeLogManage(opeLogManageVo);
    }


}
